﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

namespace Demo.Mmose.Core.Item
{
    /// <summary>
    /// 
    /// </summary>
    public class BaseItemContainerState
    {
        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateAddSubItemCall = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateAddSubItemCall
        {
            get { return m_UpdateAddSubItemCall; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateRemoveSubItemCall = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateRemoveSubItemCall
        {
            get { return m_UpdateRemoveSubItemCall; }
        }
        #endregion

        #region zh-CHS 内部方法 | en Internal Methods
        /// <summary>
        /// 
        /// </summary>
        internal void UpdateAddSubItemCall()
        {
            m_UpdateAddSubItemCall = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateRemoveSubItemCall()
        {
            m_UpdateAddSubItemCall = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void RestoreAll()
        {
            m_UpdateAddSubItemCall = false;
            m_UpdateAddSubItemCall = false;
        }
        #endregion
    }
}
